﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="UserContactRequestList.aspx.cs" Inherits="DasIdeen.Pages.UserContactRequestList" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="margin-top: 10px">
        <h3>
            Contact Request Register List :</h3>
        <hr />
        <p>
            The following list shows, list of user who has registerd for contact.</p>
    </div>
    <asp:Label ID="lblMessage" runat="server" Text="" Style="color: Maroon"></asp:Label>
    <div id="ContactRequestList" style="margin-top: 20px; margin-bottom: 15px">
        <asp:GridView ID="gdvContactRequestList" DataKeyNames="ContactRequestKey" runat="server"
            AutoGenerateColumns="false" Width="960px" AllowPaging="True" PageSize="50" OnPageIndexChanging="gdvContactRequestList_PageIndexChanging"
            CellPadding="7">
            <HeaderStyle BackColor="#87A020" Font-Bold="True" ForeColor="#FFFFFF" />
            <Columns>
                <asp:TemplateField HeaderStyle-Width="40px" HeaderText="ID">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkUserContactDetails" runat="server" CssClass="texthover" title="Click here to get full details"
                            Style="text-decoration: underline; outline:none; font-size: 16px; padding-left: 3px; color: #3B67B2"
                            OnClick="lnkUserContactDetails_Click"><%# Eval("ContactRequestKey")%></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ContactRequesterName" HeaderText="Requester Name" HeaderStyle-CssClass="gridHeaderStyle" />
                <asp:BoundField DataField="ContactRequesterEmail" HeaderText="Requester Email" HeaderStyle-CssClass="gridHeaderStyle" />
                <asp:BoundField DataField="ContactRequestMessage" HeaderText="Request Message" HeaderStyle-CssClass="gridHeaderStyle" />
                <asp:BoundField DataField="Sys_DateOfCreation" HeaderText="Request Date" DataFormatString="{0:d}" HeaderStyle-CssClass="gridHeaderStyle" />
            </Columns>
        </asp:GridView>
        <asp:Button ID="btnDownload" class="CSSButton" Style="width: 240px; margin: 20px 0px 5px 720px"
            runat="server" Text="Download Records In ExcelSheet" />
        <asp:Label ID="lblresult" runat="server" />
        <asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
    </div>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopup"
        PopupControlID="pnlpopup" CancelControlID="btnRemove" BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>
    <asp:Panel ID="pnlpopup" runat="server" Style="display: none;width:auto; max-width:965px; padding: 0px"
        CssClass="modalPopup">
         <div class="PopupHeaderStyle">
            <h2 style=" color: #FFFFFF;float:left;margin:3px 25px; text-align: center"> User Contact Request Details</h2>
            <div style="text-align: right; font-size: 14px; font-weight: 700;padding-top:5px"><a id="btnRemove">X</a></div>
        </div>
        <table>
            <tr>
                <td valign="top" class="TDCss">
                    ContactRequest Key:
                </td>
                <td valign="top">
                    <div class="DivPopupContent">
                        <asp:Label ID="lblContactRequestKey" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top" class="TDCss">
                    Requester Name:
                </td>
                <td valign="top">
                    <div class="DivPopupContent">
                        <asp:Label ID="lblRequesterName" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top" class="TDCss">
                    Requester Email:
                </td>
                <td valign="top">
                    <div class="DivPopupContent">
                        <asp:Label ID="lblRequesterEmail" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top" class="TDCss">
                    Request Date:
                </td>
                <td valign="top">
                    <div class="DivPopupContent">
                        <asp:Label ID="lblRequestDate" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top" class="TDCss">
                    Request Message:
                </td>
                <td valign="top">
                    <div class="PopUpLargeContentTextBox">
                        <asp:Label ID="lblRequestMessage" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
